import {
	createStore
} from "vuex";
import createPersistedState from "vuex-persistedstate"
const myStorage = {
	getItem(name) {
		return uni.getStorageSync(name);
	},
	setItem(name, value) {
		uni.setStorageSync(name, value);
	},
	clear() {
		uni.clearStorageSync();
	},
	removeItem(name) {
		uni.removeStorageSync(name);
	}
};

const store = createStore({
	modules: {

	},
	state() {
		return {}
	},
	getters: {
		
	},
	mutations: {
		
	},
	actions: {
		
	},
	plugins: [
		createPersistedState({
			storage: myStorage,
			paths: [
			],
		})
	]
})

export default store;